{#include file="admin_header.htm"#}
<div class="admin_main_nr_dbox">
    <table width="700" border="0" cellspacing="0" cellpadding="5" style="border-bottom:1px #CCCCCC solid; margin-bottom:8px;">
      <tr>
        <td width="533" height="25" style="font-size:14px;">新增分類</td>
      </tr>
    </table>
    <table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="300" valign="top">
		  <form id="form1" name="form1" method="post" action="?act=add_category_save">
		<table width="600" border="0" align="center" cellpadding="0" cellspacing="5" style="margin-top:10px;">
          <tr>
		  <td align="right">所屬分類：</td>
            <td width="300"><select name="ParentID" id="ParentID"  style=" font-size:12px; width:206px;">
              <option value="0" {#if $ParentID==0#}selected="selected"{#/if#}>頂級分類</option>              
{#section name=Parent loop=$Parent#}
<option value="{#$Parent[Parent].id#}" {#if $ParentID==$Parent[Parent].id#}selected="selected" {#/if#}>{#$Parent[Parent].categoryname#}</option>
{#/section#} 
            </select></td>
            </tr>
          <tr>
            <td align="right">名稱：</td>
            <td><input name="categoryname" type="text" class="article_text_f"  value="{#$category_list[category].categoryname#}" maxlength="20"/></td>
            </tr>
          <tr>
            <td align="right">排序：</td>
            <td><input name="category_order" type="text" class="article_category_input_a" id="category_order" style="width:30px; font-size:12px;"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="0" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
            </tr>
          <tr>
            <td align="right">&nbsp;</td>
            <td height="40"><input type="submit" name="del_Submit" value="保存" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/>&nbsp;&nbsp;
              <input type="button" name="Submit" value="返回列表" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='?act=jobs_category'"/></td>
            </tr>
        </table>
		  </form>
		</td>
      </tr>
    </table>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>
